/*#include <windowsx.h>
#include <windows.h>

enum TvirtualAlign {VANONE =0,VACENTER =1,VAFITTOREAL =2};

class TvirtualScreen
{
    private:
		HWND RealWindow;
		int RealWidth;
		int RealHeight;
		HDC RealDC;
		HPEN RealPen;
		HBRUSH RealBrush;
		HDC VirtualDC;
		HBITMAP VirtualBM;
		int VirtualX;
		int VirtualY;
		int VirtualWidth;
		int VirtualHeight;
		TvirtualAlign VirtualAlign;
		HBITMAP SaveBM;
    public:
		void RecalcVirtualPosition()
		{
			
			RECT rRect;
			GetClientRect(RealWindow,&rRect);
			RealWidth=rRect.right;
			RealHeight=rRect.bottom;
			switch(VirtualAlign)
			{
			case VANONE:
						{
							
							VirtualX=0;
							VirtualY=0;
							break;
						}
			case VAFITTOREAL:
						{
							
							VirtualX=0;
							VirtualY=0;
							break;
						}
			case VACENTER: 
					{
						VirtualX=(RealWidth-VirtualWidth)/2;
						VirtualY=(RealHeight-VirtualHeight)/2;
						
				
						break;
					}
			
			}
		}
		TvirtualScreen(HWND aRealWindow,
			          int aVirtualWidth,
					  int aVirtualHeight,
					  long int BackColor,
					  long int RealBackColor,
					  TvirtualAlign aVirtualAlign)
		{
			HBRUSH bBrush,bSave;
			HPEN pPen,pSave;
			RealWindow=aRealWindow;
			RealPen=CreatePen(PS_SOLID,1,RealBackColor);
			RealBrush=CreateSolidBrush(RealBackColor);
			VirtualAlign=aVirtualAlign;
			VirtualWidth=aVirtualWidth;
			VirtualHeight=aVirtualHeight;
			RealDC=GetDC(RealWindow);
			VirtualDC=CreateCompatibleDC(RealDC);
			VirtualBM=CreateCompatibleBitmap(RealDC,VirtualWidth,VirtualHeight);	
			SaveBM=(HBITMAP)SelectObject(VirtualDC,VirtualBM);//???
			bBrush=CreateSolidBrush(BackColor);
			pPen=CreatePen(PS_SOLID,1,BackColor);
			
			bSave=bBrush;
			SelectObject(VirtualDC,bBrush);
			pSave=pPen;
			SelectObject(VirtualDC,pPen);
			
			Rectangle(VirtualDC,0,0,VirtualWidth,VirtualHeight);
			SelectObject(VirtualDC,bSave);
			SelectObject(VirtualDC,pSave);
			DeleteObject(bBrush);
			DeleteObject(pPen);
			RecalcVirtualPosition();
		}

		void EraseBackGround()
		{
			HBRUSH bSave;
			HPEN pSave;
			if (VirtualAlign == VAFITTOREAL)
			{
				exit;
			}
			bSave = RealBrush;
			SelectObject(RealDC,RealBrush);
			pSave = RealPen;
			SelectObject(RealDC,RealPen);
			ExcludeClipRect(RealDC,VirtualX,VirtualY,VirtualX+VirtualWidth,VirtualY+VirtualHeight);
			
		
		}
};


typedef  TvirtualScreen* PvirtualScreen;
*/